package com.sasis.webapp.task;

import java.util.TimerTask;

import javax.servlet.ServletContext;

public class ScheduleRunner extends TimerTask {

	private Task task;
	
	private ServletContext context;
	
	public ScheduleRunner(Task task, ServletContext context) {
		this.task = task;
		this.context = context;
	}

	public void run() {
		task.doTask(context);
		task = null;
		context = null;
	}
}
